/**  
* <p>Title: PasswordExpired.java</p>  
* <p>Description: </p>  
* <p>Copyright: Copyright (c) 2017</p>  
* @author Administrator
* @date 2020年3月3日  
* @version 1.0  
*/  
package com.skivingcloud.admin.conf;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


/**  
* 密码策略配置
* @author hushouquan  
*/
@Component
@ConfigurationProperties(prefix = "skivingcloud.admin.password.expired")
public class PasswordExpired{
	
	private String defaultValue;
	/**
	 * 密码过期时间
	 */
	private int days = 90;
	
	/**
	 * 离过期几天开始提醒
	 */
	private int alarm = 10;
	
	/**
	 * 密码过期是否锁定用户
	 */
	private boolean lock = false;
	
	/**
	 * 是否强制修改密码
	 */
	private boolean forceChangePwd = false;
	

	/**
	 * 离密码过期几天强制修改密码
	 */
	private int forceDays = 5;


	public PasswordExpired() {
		super();
	}


	public int getDays() {
		return days;
	}


	public void setDays(int days) {
		this.days = days;
	}


	public int getAlarm() {
		return alarm;
	}


	public void setAlarm(int alarm) {
		this.alarm = alarm;
	}


	public boolean isLock() {
		return lock;
	}


	public void setLock(boolean lock) {
		this.lock = lock;
	}


	public boolean isForceChangePwd() {
		return forceChangePwd;
	}


	public void setForceChangePwd(boolean forceChangePwd) {
		this.forceChangePwd = forceChangePwd;
	}


	public int getForceDays() {
		return forceDays;
	}


	public void setForceDays(int forceDays) {
		this.forceDays = forceDays;
	}


	@Override
	public String toString() {
        return "PasswordExpired [days=" +
                days +
                ", alarm=" +
                alarm +
                ", lock=" +
                lock +
                ", forceChangePwd=" +
                forceChangePwd +
                ", forceDays=" +
                forceDays +
                "]";
	}
	
	public String getDefaultValue(){
		return defaultValue;
	}
	
	public void setDefaultValue(String defaultValue){
		this.defaultValue = defaultValue;
	}
}
